package com.api.shopapi.service.impl;

import com.api.shopapi.entity.ElderlyDiseaseTypeRel;
import com.api.shopapi.mapper.ElderlyDiseaseTypeRelMapper;
import com.api.shopapi.service.ElderlyDiseaseTypeRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("ElderlyDiseaseTypeRelServiceImplOne")
public class ElderlyDiseaseTypeRelServiceImplOne implements ElderlyDiseaseTypeRelService {

    @Autowired
    private ElderlyDiseaseTypeRelMapper elderlyDiseaseTypeRelMapper;

    @Override
    public
    int insert(ElderlyDiseaseTypeRel elderlyDiseaseTypeRel){
        return elderlyDiseaseTypeRelMapper.insert(elderlyDiseaseTypeRel);
    }

    @Override
    public
    int delete(String elderlyDiseaseTypeRelCode){
        return elderlyDiseaseTypeRelMapper.delete(elderlyDiseaseTypeRelCode);
    }


    @Override
    public
    List<ElderlyDiseaseTypeRel> ListByElderlyCode(String elderlyCode){
        return elderlyDiseaseTypeRelMapper.ListByElderlyCode(elderlyCode);
    }


}
